<!--conf
<sample in_favorites="false">
              <product version="1.4" edition="std"/>
                     <modifications>
                            <modified date="070101"/>
                     </modifications>
               </sample>
 --> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Autowidth for column(s)</title>
	
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
</head>
<body>
	<h1>Autowidth for column(s)</h1>
	<p>Using * symbol instead of column width, you can set auto width in the grid. <br> 
	Try to resize column. Book Title column will take all available space after resizing other columns.</p>
	
	<div id="gridbox" style="width:700px; height:270px; background-color:white;overflow:hidden"></div>

<script>
    mygrid = new dhtmlXGridObject('gridbox');
    mygrid.setImagePath("../../../codebase/imgs/");
    mygrid.setHeader("Sales,Book Title,Author,Price,In Store,Shipping,Bestseller,Date of Publication");
    mygrid.setInitWidths("50,*,120,80,70,80,70,100")
    mygrid.setColAlign("center,left,left,right,center,left,center,center")
    mygrid.setColTypes("dyn,ed,ed,price,ch,co,ra,ro");
    mygrid.setColSorting("int,str,str,int,str,str,str,date")
 
    mygrid.enableMultiselect(true);
    mygrid.init();
	mygrid.setSkin("dhx_skyblue");
    mygrid.loadXML("../common/grid.xml");
</script>

</body>
</html>
